package org.apache.zookeeper.server.paxos2;
import java.util.*;

public class Test{

    public static void main(String[] args) throws Exception{
	byte[] data0 = new byte[Configuration.blockSize];
	data0[0] = 0;
	byte[] data1 = new byte[Configuration.blockSize];
        data1[0] = 1;
	byte[] data2 = new byte[Configuration.blockSize];
        data2[0] = 2;

	ArrayList<Integer> stripes = new ArrayList<Integer>();
	stripes.add(0);
	stripes.add(1);
	stripes.add(2);

	Storage s = new Storage(new ArrayList<Integer>(stripes), null);
	//s.write(0L, data0, 0);
	//s.write(1L, data1, 0);
	//s.write(2L, data2, 0);


	/*System.out.println(s.read(0L)[0]);
	System.out.println(s.read(1L)[0]);
	System.out.println(s.read(2L)[0]);
	Thread.sleep(1000);
	s.close();

	s = new Storage(new ArrayList<Integer>(stripes));
	System.out.println(s.read(0L)[0]);
        System.out.println(s.read(1L)[0]);
        System.out.println(s.read(2L)[0]);     */
	s.close();
    }
}
